package com.jiangsong.batch.utils;

import com.jiangsong.batch.abst.StepSyncManager;
import org.springframework.batch.core.StepExecution;

public class StepUtil {

    public static StepExecution getStepExecution() {
        return StepSyncManager.getContext().getStepExecution();
    }

    public static Object getData(String key) {
        return StepSyncManager.getContext().getStepExecution().getExecutionContext().get(key);
    }
}
